package com.hejing.project03_优尚开发团队人员调度系统.domain;

/**
 * ClassName: Architect
 * Package: com.hejing.project03_优尚开发团队人员调度系统.domain
 * Description:
 *
 * @Author: HeJing
 * @Create: 2023-04-13 18:29
 * @Version: 1.0
 */
public class Architect extends Designer {

    // 属性
    private int stock;  // 股票

    // 构造器
    public Architect() {

    }

    public Architect(int id, String name, int age, double salary, Equipment equipment, double bonus, int stock) {
        super(id, name, age, salary, equipment, bonus);
        this.stock = stock;
    }

    // get set

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    // toString
    @Override
    public String toString() {
        return getDetails() + "\t架构师\t" + getStock() + "\t" + getBonus() + "\t"
                + getStock() + "\t" + getEquipment().getDescription();
    }

    public String getDetailsForTeam() {
        return getBasicDetailsForTeam() + "架构师\t" + getBonus() + "\t" + stock;
    }
}


































